import { Entity } from "../../../core/Entity";
import { SkillEffect } from "../SkillEffect";
// 伤害效果
export class DamageEffect extends SkillEffect {
    constructor(
        source: Entity,
        targets: Entity[],
        private damage: number
    ) {
        super(source, targets);
    }
    
    public apply(): void {
        this.targets.forEach(target => {
            // target.getComponent(ECAttribute)?.takeDamage(this.damage);
        });
    }
}
